import axios from "axios"

const request = axios.create({
    baseURL:"/api"
})
request.interceptors.request.use(
    function(config){
        config.headers.authorization=localStorage.getItem("HK-user")
        return config;
    },
    function (error){
        return Promise.reject(error);
    }
)
request.interceptors.request.use(
    function(response){
      
        return response.data;
    },
    function (error){
        return Promise.reject(error);
    }
)